import { postRequest, getRequest, deleteRequest } from '@/libs/axios.js'

export const imgcode = params => {
    return postRequest('/checkcode/img', params, 'application/json')
}

export const userlogin = params => {
    return postRequest('/login', params, 'application/x-www-form-urlencoded')
}

export const reflogintoken = params => {
    return postRequest('/token/refresh', params, 'application/json')
}

export const getuserinfofunlist = params => {
    return getRequest('/sysUser/permissionTree', params, 'application/json')
}

export const asidelist = params => {
    return getRequest('/sysFunc/funcTree', params, 'application/json')
}

export const selfunlist = (type, params) => {
    return postRequest(`/sysFunc/${type}/getFuncTree`, params, 'application/json')
}

export const funlist = () => {
    return getRequest('/sysFunc/funcTree', 'application/json')
}

export const funadd = (params) => {
    return postRequest('/sysFunc/add', params, 'application/json')
}

export const funeditdet = (id, params) => {
    return postRequest(`/sysFunc/${id}/getDetail`, params, 'application/json')
}

export const funedit = (id, params) => {
    return postRequest(`/sysFunc/${id}/update`, params, 'application/json')
}

export const funremove = (id, params) => {
    return deleteRequest(`/sysFunc/${id}/delete`, params, 'application/json')
}

export const prolist = (params) => {
    return postRequest('/sysProduct/list', params, 'application/json')
}

export const proadd = (params) => {
    return postRequest('/sysProduct/add', params, 'application/json')
}

export const proeditdet = (params) => {
    return postRequest('/sysProduct/query', params, 'application/json')
}

export const proedit = (params) => {
    return postRequest('/sysProduct/update', params, 'application/json')
}

export const proremove = (params) => {
    return postRequest('/sysProduct/delete', params, 'application/json')
}

export const rolelist = (params) => {
    return postRequest('/sysRole/pageList', params, 'application/json')
}

export const roleadd = (params) => {
    return postRequest('/sysRole/add', params, 'application/json')
}

export const roleeditdet = (id, params) => {
    return getRequest(`/sysRole/${id}/getRole`, params, 'application/json')
}

export const roleedit = (params) => {
    return postRequest('/sysRole/update', params, 'application/json')
}

export const powertree = (id, params) => {
    return getRequest(`/sysRole/${id}/permissionTree`, params, 'application/json')
}

export const powertreeedit = (id, params) => {
    return postRequest(`/sysRole/${id}/permission/update`, params, 'application/json')
}

export const operlist = (params) => {
    return postRequest('/sysUser/pageList', params, 'application/json')
}

export const operadd = (params) => {
    return postRequest('/sysUser/add', params, 'application/json')
}

export const opereditdet = (params) => {
    return postRequest('/sysUser/detail', params, 'application/json')
}

export const operedit = (params) => {
    return postRequest('/sysUser/update', params, 'application/json')
}

export const oprpowertree = (id, params) => {
    return getRequest(`/sysRole/${id}/permissionTree`, params, 'application/json')
}

export const merlist = (params) => {
    return postRequest('/merApplyOrder/pageList', params, 'application/json')
}

export const meraudit = (params) => {
    return postRequest('/merApplyOrder/getDetail', params, 'application/json')
}

export const translist = (params) => {
    return postRequest('/sysMerOrder/pageList', params, 'application/json')
}

export const freuserlist = (params) => {
    return postRequest('/merApplyOrder/pageList', params, 'application/json')
}

export const disreclist = (params) => {
    return postRequest('/settleManage/settleClearTransList', params, 'application/json')
}

export const monreclist = (params) => {
    return postRequest('/settleManage/settleTransPageList', params, 'application/json')
}

export const monrecdetail = (params) => {
    return postRequest('/settleManage/getTransDetail', params, 'application/json')
}

export const setreclist = (params) => {
    return postRequest('/settleManage/settleBatchList', params, 'application/json')
}

export const appbanlist = (params) => {
    return postRequest('/appbanner/pageList', params, 'application/json')
}

export const upappimg = (params) => {
    return postRequest('/manageImageServer/upload', params, 'application/x-www-form-urlencoded')
}

export const appbanadd = (params) => {
    return postRequest('/appbanner/add', params, 'application/json')
}

export const appbandetails = (params) => {
    return postRequest('/appbanner/detail', params, 'application/json')
}

export const appbanedit = (params) => {
    return postRequest('/appbanner/update', params, 'application/json')
}

export const diclist = (params) => {
    return postRequest('/sysDictionary/pageList', params, 'application/json')
}

export const dictree = (params) => {
    return getRequest(`/sysDictionary/dictionaryTree/${params}`, 'application/json')
}

export const soncomaud = (params) => {
    return postRequest('/merApplyOrder/auditSubStepRecord', params, 'application/json')
}

export const comaud = (params) => {
    return postRequest('/merApplyOrder/auditRecord', params, 'application/json')
}

export const tasklist = (params) => {
    return postRequest('/sysscheduletask/pageList', params, 'application/json')
}

export const tasklistup = (params) => {
    return postRequest('/sysscheduletask/update', params, 'application/json')
}

export const tasklistadd = (params) => {
    return postRequest('/sysscheduletask/add', params, 'application/json')
}

export const tasklistadel = (params) => {
    return postRequest('/sysscheduletask/batchDelete', params, 'application/json')
}

export const tasklistenab = (params) => {
    return postRequest('/sysscheduletask/enableTaskList', params, 'application/json')
}

export const tasklistdisable = (params) => {
    return postRequest('/sysscheduletask/disableTaskList', params, 'application/json')
}

export const taskliststatus = (params) => {
    return postRequest('/sysscheduletask/getTaskJobRunStatus', params, 'application/json')
}

export const tasklistdonow = (params) => {
    return postRequest('/sysscheduletask/doTaskListNow', params, 'application/json')
}

export const getmerlist = (params) => {
    return postRequest('/merUserInfo/pageList', params, 'application/json')
}

export const meracclist = (params) => {
    return postRequest('/settleManage/merAccPageList', params, 'application/json')
}

export const orderdetail = (params) => {
    return postRequest('/merApplyOrder/getDetail', params, 'application/json')
}

export const resetpassword = (params) => {
    return postRequest('/sysUser/resetPassword', params, 'application/json')
}

export const merorderdet = (params) => {
    return postRequest('/sysMerOrder/getOrderDetail', params, 'application/json')
}

export const dicadd = (params) => {
    return postRequest('/sysDictionary/add', params, 'application/json')
}

export const dicedit = (params) => {
    return postRequest('/sysDictionary/update', params, 'application/json')
}

export const dicdetailedit = (params) => {
    return postRequest('/sysDictionary/detail', params, 'application/json')
}

export const recret = (params) => {
    return postRequest('/settleManage/getForClearOrSettleDetail', params, 'application/json')
}

export const getmerprolist = (params) => {
    return postRequest('/merProduct/merProductList', params, 'application/json')
}

export const getmerprotypelist = (params) => {
    return postRequest('/merProduct/getProductTypeList', params, 'application/json')
}

export const getmerprolistadd = (params) => {
    return postRequest('/merProduct/addMerProduct', params, 'application/json')
}

export const getmerprostslist = (params) => {
    return postRequest('/merProduct/getProductStatusList', params, 'application/json')
}

export const getmerprocgelist = (params) => {
    return postRequest('/merProduct/changeMerProduct', params, 'application/json')
}

export const getmerprodetlist = (params) => {
    return postRequest('/merProduct/getMerProductDetail', params, 'application/json')
}

export const getmerprobifdetlist = (params) => {
    return postRequest('/merUserInfo/getMerBaseInfoDetail', params, 'application/json')
}

export const getsettlelist = (params) => {
    return postRequest('/merUserInfo/getMerSettleDetail', params, 'application/json')
}

export const getaccountlist = (params) => {
    return postRequest('/merUserInfo/getAccountPrincipalInfo', params, 'application/json')
}

export const getsecretkeylist = (params) => {
    return postRequest('/merUserInfo/getMerSecretKey', params, 'application/json')
}

export const getloginpwderrlist = (params) => {
    return postRequest('/merUserInfo/getMerLoginPwdErr', params, 'application/json')
}

export const getloginrecordlist = (params) => {
    return postRequest('/merUserInfo/getMerUserLoginRecordInfo', params, 'application/json')
}

export const getdeviceinfolist = (params) => {
    return postRequest('/merUserInfo/getMerUserDeviceInfo', params, 'application/json')
}

export const getsmscontntlist = (params) => {
    return postRequest('/smsContent/pageList', params, 'application/json')
}

export const getcpequalitylist = (params) => {
    return postRequest('/checkQuery/getCpEqualityList', params, 'application/json')
}

export const getrcmistakelist = (params) => {
    return postRequest('/checkQuery/getRcMistakeList', params, 'application/json')
}

export const getrcpoolchannellist = (params) => {
    return postRequest('/checkQuery/getRcPoolChannelList', params, 'application/json')
}

export const getrcoutbillpaystacklist = (params) => {
    return postRequest('/checkQuery/getRcOutBillingPayStackList', params, 'application/json')
}

export const handleopenProduct = (params) => {
    return postRequest('/merApplyOrder/openProduct', params, 'application/json')
}

export const getMerforBaseInfo = (params) => {
    return postRequest('/merUserInfo/getMerIntoBaseInfo', params, 'application/json')
}

export const editaccountlist = (params) => {
    return postRequest('/merUserInfo/getAccountPrincipalInfo', params, 'application/json')
}

export const getmersettlelist = (params) => {
    return postRequest('/merProduct/getMerSettleStyle', params, 'application/json')
}

export const getsmsmchannellist = (params) => {
    return postRequest('/smsChannel/pageList', params, 'application/json')
}

export const getrecordpagelist = (params) => {
    return postRequest('sysscheduletask/recordPageList', params, 'application/json')
}

export const getuserinfopagelist = (params) => {
    return postRequest('/sysuserInfo/pageList', params, 'application/json')
}

export const getuserinfobankcardlist = (params) => {
    return postRequest('/sysuserInfo/bankCardList', params, 'application/json')
}

export const addsmschanner = (params) => {
    return postRequest('/smsChannel/add', params, 'application/json')
}

export const deletesmschanner = (params) => {
    return postRequest('/smsChannel/delete', params, 'application/json')
}

export const updatesmschanner = (params) => {
    return postRequest('/smsChannel/update', params, 'application/json')
}

export const addsmscontnt = (params) => {
    return postRequest('/smsContent/add', params, 'application/json')
}

export const deletesmscontnt = (params) => {
    return postRequest('/smsContent/delete', params, 'application/json')
}

export const editsmscontnt = (params) => {
    return postRequest('/smsContent/update', params, 'application/json')
}

export const getemailchnlist = (params) => {
    return postRequest('/emailChannel/pageList', params, 'application/json')
}

export const getemailcontentchnlist = (params) => {
    return postRequest('/emailChannel/contentPageList', params, 'application/json')
}

export const settleupdatestatus = (params) => {
    return postRequest('settleManage/submitFrozen', params, 'application/json')
}

export const getimgurl = (params) => {
    return postRequest('manageImageServer/getImgUrl', params, 'application/json')
}

export const auditrecfrozen = (params) => {
    return postRequest('/merApplyOrder/auditRecord/merFrozen', params, 'application/json')
}

export const getregmerlist = (params) => {
    return postRequest('/merUserInfo/regMerList', params, 'application/json')
}

export const getrisktypelist = (params) => {
    return postRequest('/risk/type/list', params, 'application/json')
}

export const addrisktype = (params) => {
    return postRequest('/risk/type/add', params, 'application/json')
}

export const updaterisktype = (params, ruleId) => {
    return postRequest(`/risk/type/update/${ruleId}`, params, 'application/json')
}

export const getriskrulelist = (ruleId) => {
    return getRequest(`/risk/${ruleId}/rule/list`, 'application/json')
}

export const addriskrule = (params) => {
    return postRequest('/risk/type/rule/add', params, 'application/json')
}

export const updateriskrule = (params, ruleId) => {
    return postRequest(`/risk/type/rule/update/${ruleId}`, params, 'application/json')
}

export const getriskitemlist = (ruleId) => {
    return getRequest(`/risk/${ruleId}/item/list`, 'application/json')
}

export const addriskitem = (params) => {
    return postRequest('/risk/type/rule/item/add', params, 'application/json')
}

export const updateriskitem = (params, itemId) => {
    return postRequest(`/risk/type/rule/item/update/${itemId}`, params, 'application/json')
}

export const updaemailtel = (params) => {
    return postRequest('/emailChannel/update/email/content', params, 'application/json')
}

export const getrouterchannellist = () => {
    return postRequest('/router/channel/list', 'application/json')
}

export const getrouterproductlist = (params) => {
    return postRequest('/router/product/list', params, 'application/json')
}

export const updaterouterproduct = (params) => {
    return postRequest('/router/product/update', params, 'application/json')
}

export const getnoticerecordlist = (params) => {
    return postRequest('/sys/noticeRecord/pageList', params, 'application/json')
}

export const addnoticerecord = (params) => {
    return postRequest('/sys/noticeRecord/add', params, 'application/json')
}

export const editnoticerecord = (params) => {
    return postRequest('/sys/noticeRecord/update', params, 'application/json')
}

export const releasenoticerecord = (params) => {
    return postRequest('/sys/noticeRecord/release', params, 'application/json')
}

export const getappversionpage = (params) => {
    return postRequest('/appVersion/page', params, 'application/json')
}

export const addappversion = (params) => {
    return postRequest('/appVersion/add', params, 'application/json')
}

export const updateappversion = (params) => {
    return postRequest('/appVersion/update', params, 'application/json')
}

export const getappsuggestlist = (params) => {
    return postRequest('sysAppSuggest/pageList', params, 'application/json')
}

export const getappsuggestdetail = (params) => {
    return postRequest('sysAppSuggest/getSuggestDetail', params, 'application/json')
}

export const replyappsuggest = (params) => {
    return postRequest('sysAppSuggest/reply', params, 'application/json')
}

export const endreplyappsuggest = (params) => {
    return postRequest('sysAppSuggest/endSuggest', params, 'application/json')
}

export const disposereplyappsuggest = (params) => {
    return postRequest('sysAppSuggest/dispose', params, 'application/json')
}

export const getuseraccstolenlist = (params) => {
    return postRequest('userAccountStolen/pageList', params, 'application/json')
}

export const getuseraccstolendetail = (params) => {
    return postRequest('userAccountStolen/getDetail', params, 'application/json')
}

export const disposeuseraccstolen = (params) => {
    return postRequest('userAccountStolen/dispose', params, 'application/json')
}

export const replyuseraccstolen = (params) => {
    return postRequest('userAccountStolen/reply', params, 'application/json')
}

export const enduseraccstolen = (params) => {
    return postRequest('userAccountStolen/endStolen', params, 'application/json')
}

export const getsysfaqlist = (params) => {
    return postRequest('sysFaq/pageList', params, 'application/json')
}

export const addsysfaq = (params) => {
    return postRequest('sysFaq/saveFaq', params, 'application/json')
}

export const removesysfaq = (params) => {
    return postRequest('sysFaq/deleteFaq', params, 'application/json')
}

export const editsysfaq = (params) => {
    return postRequest('sysFaq/updateFaq', params, 'application/json')
}

export const getbilldaylist = (params) => {
    return postRequest('billday/list', params, 'application/json')
}

export const getriskstoplist = (params) => {
    return postRequest('risk/stop/list', params, 'application/json')
}

export const getbilldayacclist = (params) => {
    return postRequest(`billday/${params}/accList`, 'application/json')
}

export const modifymerproduct = (id, params) => {
    return postRequest(`merProduct/${id}/modify`, params, 'application/json')
}

export const addmersettle = (params) => {
    return postRequest(`/mer/settle/add`, params, 'application/json')
}

export const modifymersettle = (id, params) => {
    return postRequest(`/mer/settle/${id}/modify`, params, 'application/json')
}

export const getsettlewaitpaylist = (params) => {
    return postRequest(`/settleManage/settleWaitpayList`, params, 'application/json')
}

export const submitpaymentman = (params) => {
    return postRequest(`/settleManage/submitPayment`, params, 'application/json')
}

export const auditmoneyrecord = (params) => {
    return postRequest(`/merApplyOrder/auditRecord/settlePay`, params, 'application/json')
}

export const getmersecuritylist = (params) => {
    return postRequest(`/merUserInfo/getMerSecurityList`, params, 'application/json')
}

export const addmersecurity = (params) => {
    return postRequest(`/merUserInfo/createMerSecurity`, params, 'application/json')
}

export const editmersecurity = (params) => {
    return postRequest(`/merUserInfo/updateMerSecurity`, params, 'application/json')
}

export const getauditsettlepaymentList = (params) => {
    return postRequest(`/merApplyOrder/auditSettlePaymentList`, params, 'application/json')
}

export const getmeracctranslist = (params) => {
    return postRequest(`/settleManage/merAccTransList`, params, 'application/json')
}

export const delappbanner = (params) => {
    return postRequest(`/appbanner/delete`, params, 'application/json')
}

export const getrcprocessloglist = (params) => {
    return postRequest(`/checkQuery/getRcProcessLogList`, params, 'application/json')
}
